FROM mcr.microsoft.com/playwright:v1.45.3-jammy

WORKDIR /app

COPY package*.json ./

RUN npm config set registry https://registry.npmmirror.com/ && npm ci

RUN npx playwright install

COPY . .

CMD ["npx", "playwright", "test"]